#ifndef COMPILER_ONLINE
#include"header.cc"
#endif

bool text1()
{
    // [1,3,5,7,9],5,3
    vector<int> v = {1,3,5,7,9};
    BinarySearch bs;
    int ret = bs.getPos(v,5,3);
    if(ret == 1){
        std::cout << "通过用例1, 测试[1,3,4,5,7,9],5,3通过 ... OK!" << std::endl;
    }
    else{
        std::cout << "没有通过用例1, 测试的是: [1,3,4,5,7,9],5,3"  << std::endl;
    }
}
int main()
{
    text1();
    return 0;
}